// NewSupportCommand.h: interface for the NewSupportCommand class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_NEWSUPPORTCOMMAND_H__27762144_C872_43D3_BB6E_E8070515F92F__INCLUDED_)
#define AFX_NEWSUPPORTCOMMAND_H__27762144_C872_43D3_BB6E_E8070515F92F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "UndoCommand.h"
#include "SupportHanger.h"
#include "AutoCADCommandLineCommand.h"

class NewSupportCommand : public UndoCommand, public AutoCADCommandLineCommand
{
public:
	NewSupportCommand();
	virtual ~NewSupportCommand();

public:
	virtual BOOL Execute();

	void BlockName(const CString& strBlockName){
		m_strBlockName = strBlockName;
	}

private:
	void GetPipeObject();
	BOOL NewSupportHanger();
	BOOL NewSupportHangerPoint();

private:
	SupportHanger* m_pSupportHanger;
	SupportHangerPoint m_pt;
	Part* m_pPipe;
	CString m_strBlockName;
};

#endif // !defined(AFX_NEWSUPPORTCOMMAND_H__27762144_C872_43D3_BB6E_E8070515F92F__INCLUDED_)
